home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / jockey-common.postinst < prev    next >
Text File  |  2009-10-25  |  1KB  |  38 lines

  1. #!/bin/sh -e
  2.  
  3. if [ "$1" = configure ] || [ "$1" = reconfigure ]; then
  4.     getent group admin > /dev/null 2>&1 || addgroup --system --quiet admin
  5.     chown root:admin /var/cache/jockey
  6.     chmod 3775 /var/cache/jockey
  7.  
  8.     if dpkg --compare-versions "$2" lt-nl "0.3"; then
  9.         # format changed between 0.2 and 0.3
  10.         rm -f /var/cache/jockey/check
  11.     fi
  12.  
  13.     # clean up after restricted-manager->jockey package transition
  14.     if dpkg --compare-versions "$2" lt "0.3.3-0ubuntu3"; then
  15.         rm -f /etc/xdg/autostart/restricted-manager.desktop
  16.     fi
  17.  
  18.     # modutils recently introduced .conf suffix requirement
  19.     if dpkg --compare-versions "$2" lt-nl "0.5-0ubuntu3"; then
  20.     for f in /etc/modprobe.d/blacklist-bcm43 /etc/modprobe.d/blacklist-local; do
  21.         if [ -e "$f" ] && [ ! -e "$f.conf" ]; then
  22.         mv "$f" "$f.conf"
  23.         fi
  24.     done
  25.     fi
  26. fi
  27.  
  28. # Automatically added by dh_pycentral
  29. rm -f /var/lib/pycentral/jockey-common.pkgremove
  30. if which pycentral >/dev/null 2>&1; then
  31.     pycentral pkginstall jockey-common
  32.     if grep -qs '^jockey-common$' /var/lib/pycentral/delayed-pkgs; then
  33.         sed -i '/^jockey-common$/d' /var/lib/pycentral/delayed-pkgs
  34.     fi
  35. fi
  36. # End automatically added section
  37.  
  38.